package com.ww.basic.fun

/**
 * 匿名函数
 */
object funTest6 {
  def main(args: Array[String]): Unit = {
    println("mul(1) value = " + multi(1))
    println("mul(2) value = " + multi(2))
  }
  var factor = 3
  val multi = (i: Int) => i * factor
}
